const mongoose = require('mongoose');
const { ObjectId } = mongoose.Schema;

/**
 * Export model definition object.
 */
module.exports = {
  projectId: ObjectId,
  versionId: ObjectId,
  fileId: ObjectId,
  functionId: { type: ObjectId, unique: true, index: true },
  variables: {
    global: Object,
    params: Object,
    statics: Object,
    local: Object,
  },
  stubs: Object,
  malloc: Object,
  output: Object,
  fixedAddrs: Object,
  objectName: String,
};
